package com.ruoyi.gwc.mapper;

import java.util.List;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.ruoyi.gwc.domain.TApprovalApply;

/**
 * 申请用车审批Mapper接口
 * 
 * @author wp
 * @date 2024-12-13
 */
public interface TApprovalApplyMapper  extends BaseMapper<TApprovalApply>
{
    /**
     * 查询申请用车审批
     * 
     * @param approvalId 申请用车审批主键
     * @return 申请用车审批
     */
    public TApprovalApply selectTApprovalApplyByApprovalId(Long approvalId);

    /**
     * 查询申请用车审批列表
     * 
     * @param tApprovalApply 申请用车审批
     * @return 申请用车审批集合
     */
    public List<TApprovalApply> selectTApprovalApplyList(TApprovalApply tApprovalApply);

    /**
     * 新增申请用车审批
     * 
     * @param tApprovalApply 申请用车审批
     * @return 结果
     */
    public int insertTApprovalApply(TApprovalApply tApprovalApply);

    /**
     * 修改申请用车审批
     * 
     * @param tApprovalApply 申请用车审批
     * @return 结果
     */
    public int updateTApprovalApply(TApprovalApply tApprovalApply);

    /**
     * 删除申请用车审批
     * 
     * @param approvalId 申请用车审批主键
     * @return 结果
     */
    public int deleteTApprovalApplyByApprovalId(Long approvalId);

    /**
     * 批量删除申请用车审批
     * 
     * @param approvalIds 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteTApprovalApplyByApprovalIds(Long[] approvalIds);
}
